package com.cloud.consumer.controller;

import com.cloud.consumer.clients.PTestClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CTestController {
    @Autowired
    private PTestClient pClient;

    @GetMapping("/consumerTest")
    public String test(){
        String s = pClient.testFeign();
        return "今天，我会掌握springCloud项目创建！以后，我会成为顶级Java架构师！加油！Consumer --->" + s;
    }
}
